# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py3-yoyo-migrations
pkgver=6.1.0
pkgrel=7
pkgdesc="Database migrations with SQL"
url="https://ollycope.com/software/yoyo/latest/"
arch="noarch"
license="Apache-2.0"
depends="py3-text-unidecode py3-iniherit py3-setuptools"
options="!check" # no tests in pypi tarballs
subpackages="$pkgname-pyc"
source="https://pypi.io/packages/source/y/yoyo-migrations/yoyo-migrations-$pkgver.tar.gz"
builddir="$srcdir/yoyo-migrations-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="8ac045b11cae3d68013457f1fa90a3acfdcb2055c779f56e2deb4fea42920d5e9aa9d8c3c31b22d9d1d6aa702b5ae937b6216fefce2b71f53b7994c92d64a325  yoyo-migrations-6.1.0.tar.gz"
